package com.ttc.ssm.service.admin.impl;

import com.ttc.ssm.mapper.admin.*;
import com.ttc.ssm.po.*;
import com.ttc.ssm.service.admin.CommonService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by 58296 on 2016/8/3.
 */
public class CommonServiceImpl implements CommonService {

    @Autowired
    ZoneMapper zoneMapper;

    @Autowired
    CityMapper cityMapper;

    @Autowired
    IndustryMapper industryMapper;

    @Autowired
    SalaryTypeMapper salaryTypeMapper;

    @Autowired
    JobTypeMapper jobTypeMapper;

    @Autowired
    DegreeMapper degreeMapper;

    @Autowired
    PeopleMapper peopleMapper;

    @Autowired
    JobPropertyMapper jobPropertyMapper;

    @Override
    public List<Zone> getZone() throws Exception {
        return zoneMapper.getZone();
    }

    @Override
    public List<Industry> getIndustry() throws Exception {
        return industryMapper.getIndustry();
    }

    @Override
    public List<City> getCityByZoneId(int zone_id) throws Exception {
        return cityMapper.getCityByZoneId(zone_id);
    }

    @Override
    public List<SalaryType> getSalaryType() throws Exception {
        return salaryTypeMapper.getSalaryType();
    }

    @Override
    public List<JobType> getJobType() throws Exception {
        return jobTypeMapper.getJobType();
    }

    @Override
    public List<JobType> getJobTypeByIndustryId(int industry_id) throws Exception {
        return jobTypeMapper.getJobTypeByIndustryId(industry_id);
    }

    @Override
    public List<Degree> getDegree() throws Exception {
        return degreeMapper.getDegree();
    }

    @Override
    public List<People> getPeople() throws Exception {
        return peopleMapper.getPeople();
    }

    @Override
    public List<JobProperty> getJobProperty() throws Exception {
        return jobPropertyMapper.getJobProperty();
    }
}
